#include <stdio.h>
#include <string.h>
#include "ls.h"
#include "wc.h"

int main(int argc, char *argv[]) {
    if (argc < 2) {
        fprintf(stderr, "Usage: %s <command> [options] [file...]\n", argv[0]);
        return 1;
    }

    if (strcmp(argv[1], "ls") == 0) {
        return ls_main(argc - 1, &argv[1]);
    } else if (strcmp(argv[1], "wc") == 0) {
        return wc_main(argc - 1, &argv[1]);
    } else {
        fprintf(stderr, "Unknown command: %s\n", argv[1]);
        return 1;
    }
}
